'use strict';

/* Filters */
// need load the moment.js to use this filter. 
angular.module('app')
    .filter('UTCTime', function () {
        return function (date, format) {
            if (!angular.isDefined(date)) {
                return null;
            }
            format = format || 'yyyy-MM-dd';
            return new Date(date).UTCToLocalTimeString(format);
        }
    });